import java.io.*;
import antlr.ANTLRException;
import antlr.Token;

public class Procesador {
	public static void main (String args[]) throws FileNotFoundException {
		
		try {
			FileInputStream fis = new FileInputStream (args[0]);
			Analex analex = new Analex (fis);
			analex.setTabSize (4);
			Anasint anasint = new Anasint (analex);
			anasint.entrada();
		}
		catch (ANTLRException ae) {
			System.err.println (ae.getMessage());
		}
		catch (FileNotFoundException fnfe) {
			System.err.println ("No se encontro el fichero");
			throw new FileNotFoundException();
		}
	}
}